
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PUB
{

	public partial class PUB_CY_PARTITIONModel:Virtual_PUB_CY_PARTITIONModel
	{
		
	}
	public class Virtual_PUB_CY_PARTITIONModel
	{
		[Display(Name = "分区编号")]
		public virtual string PARTITION_ID { get; set; }
		[Display(Name = "分区名称"),Required]
		public virtual string PARTITION_NAME { get; set; }
		[Display(Name = "煤场编号"),Required]
		public virtual string COALYARD_ID { get; set; }
		[Display(Name = "起始长度"),Required,RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "起始长度必须大于0.")]
        public virtual decimal BEGIN_LENGTH { get; set; }
		[Display(Name = "终止长度"),Required, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$$", ErrorMessage = "终止长度必须大于0.")]
		public virtual decimal END_LENGTH { get; set; }
		[Display(Name = "起始宽度"),Required, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "起始宽度必须大于0.")]
		public virtual decimal BEGIN_WIDTH { get; set; }
		[Display(Name = "终止宽度"),Required, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "终止宽度必须大于0.")]
		public virtual decimal END_WIDTH { get; set; }
		[Display(Name = "最大存煤高度"), Required, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "最大存煤高度必须大于0.")]
		public virtual decimal MAX_HEIGHT { get; set; }
		[Display(Name = "最大存煤量"),Required, RegularExpression(@"^[0-9]+(.[0-9]{1,3})?$", ErrorMessage = "最大存煤量必须大于0.")]
		public virtual decimal MAX_INVENTORY { get; set; }
		[Display(Name = "存煤优先级"),Required, RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "存煤优先级必须大于0.")]
		public virtual byte ORDERS { get; set; }
		[Display(Name = "备注"),DataType(DataType.MultilineText)]
		public virtual string REMARKS { get; set; }
		[Display(Name = "启用状态")]
		public virtual bool ENABLED { get; set; }
		}
}
